package com.itstyle.jpa.model;

import javax.persistence.*;
import java.util.List;


/**
 * @author ：Xinlong.Jiang
 * @description：部门实体类
 * @date ：Created in 2019/9/26 21:28
 */

@Entity
@Table(name="organization")
public class Organization  {
    @Id
    @Column(name="id")
    private Long id;

    @Column(name="org_code")
    private String orgCode;


    @Column(name="org_name")
    private String orgName;


    @Column(name="org_name_en")
    private String orgNameEn;

    @Column(name="phone")
    private String phone;

    @Column(name="address")
    private String address;


    @Column(name="parent_org_id")
    private Long parentOrgId;

    @Column(name="org_seq")
    private String orgSeq;

    @Column(name="org_order")
    private Integer order;

    @Column(name="level")
    private Integer level;

    @Column(name="is_deleted")
    private Integer isDeleted=0;

    @Column(name="type")
    private Integer type;



    @Transient
    private List<String> parentOrgCodeList;

    @Transient
    private List<String> parentOrgNameList;



    @Transient
    private String parentOrgName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getOrgNameEn() {
        return orgNameEn;
    }

    public void setOrgNameEn(String orgNameEn) {
        this.orgNameEn = orgNameEn;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getParentOrgId() {
        return parentOrgId;
    }

    public void setParentOrgId(Long parentOrgId) {
        this.parentOrgId = parentOrgId;
    }

    public String getOrgSeq() {
        return orgSeq;
    }

    public void setOrgSeq(String orgSeq) {
        this.orgSeq = orgSeq;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<String> getParentOrgCodeList() {
        return parentOrgCodeList;
    }

    public void setParentOrgCodeList(List<String> parentOrgCodeList) {
        this.parentOrgCodeList = parentOrgCodeList;
    }

    public List<String> getParentOrgNameList() {
        return parentOrgNameList;
    }

    public void setParentOrgNameList(List<String> parentOrgNameList) {
        this.parentOrgNameList = parentOrgNameList;
    }

    public String getParentOrgName() {
        return parentOrgName;
    }

    public void setParentOrgName(String parentOrgName) {
        this.parentOrgName = parentOrgName;
    }
}
